package com.chen.file.params;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: Long
 * @date: 2023/8/13 12:58
 **/
@Data
public class FileSplitDownloadParam implements Serializable {

    @NotBlank(message = "文件路径不能为空")
    private String filePath;

    @NotBlank(message = "文件名不能为空")
    private String fileName;

    @NotNull(message = "分片大小不能为空")
    private Integer chunkSize;

    @NotBlank(message = "总分片数不能为空")
    private Integer totalChunk;

    @NotBlank(message = "当前分片数不能为空")
    private Integer currentChunk;

}
